#pragma once

#include <IwGeomFVec2.h>

class Sprite;

class TouchArea 
{
public:
	explicit TouchArea();
	
	// calculated the "correct" size for a touch area
	// based on the size of the sprite
	// touch area needs to be larger than the actual
	// button for most effective use
	void CalcSizeForSprite( const Sprite &sprite );
	
	// pos is the op left corner
	void SetPos( CIwFVec2 pos );
	void SetSize( CIwFVec2 size );
	
	bool IsWithin( uint touch ) const;
	
#ifdef _DEBUG
	void DrawDebug( );	
#endif
	
private:
	
	CIwFVec2 m_pos;
	CIwFVec2 m_size;
};